﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model PessModel.Rule

@{
    ViewBag.Title = "Delete";
}

<h2>删除评分规则</h2>
<div id="operate">@Html.ActionLink("返回", "Details", new {subjectID=Model.SubjectID })</div>

<fieldset class="show">
    @Html.Hidden("SubjectID",Model.SubjectID)

    <div class="display-label">
         名称：
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">
         说明：
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Description)
    </div>

    <div class="display-label">
         分数：
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Value)
    </div>
</fieldset>
@if(Model.Scores.Count==0)
{
    using (Html.BeginForm()) {
        @Html.AntiForgeryToken()
        <h3>如果评分规则下已有评分记录，则不删除该规则。当前规则有 @Model.Scores.Count 评分记录。 </h3>
        <h3>如果确定删除该档案，请点击&#8195;</h3>
        <div class="del_btn">&#8195;<input type="submit" value="删除" /></div>
            
    }
}
